.v-swtich {
  --v-switch-on-color: var(--v-color-primary);
  --v-switch-off-color: var(--v-border-color);
  --v-switch-on-border-color: var(--v-color-primary);
  --v-switch-off-border-color: var(--v-border-color);
}

.v-switch {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  line-height: 20px;
  height: 32px;
  border: 1px solid #efefef;

  &__input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    margin: 0;

    &:focus-visible {
      /* outline: 2px solid blue; */
      & ~ .v-switch__core {
        outline: 2px solid var(--v-switch-on-color);
        outline-offset: 1px;
      }
    }
  }

  &.is-checked {
    .v-switch__core {
      border-color: var(--v-switch-on-border-color);
      background-color: var(--v-switch-on-color);

      &-action {
        left: calc(100% - 17px);
      }

      &-inner {
        padding: 0 18px 0 4px;
      }
    }
  }

  &__core {
    display: inline-flex;
    align-items: center;
    position: relative;
    height: 20px;
    min-width: 40px;
    border: 1px solid var(--v-switch-off-border-color);
    outline: none;
    border-radius: 10px;
    box-sizing: border-box;
    background: var(--v-switch-off-color);
    cursor: pointer;
    transition: border-color var(--v-transition-duration),
      background-color var(--v-transition-duration);

    &-inner {
      width: 100%;
      transition: all var(--v-transition-duration);
      height: 16px;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      padding: 0 4px0 18px;

      &-text {
        font-size: 12px;
        color: var(--v-color-white);
        user-select: none;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
    }

    &-action {
      position: absolute;
      left: 1px;
      width: 16px;
      height: 16px;
      border-radius: var(--v-border-radius-circle);
      background-color: var(--v-color-white);
      transition: all var(--v-transition-duration);
    }
  }
}
